	/****************************************************************************************************************************************************************
	 * sphone 구현체
	 ****************************************************************************************************************************************************************/
	var LetterConfirm = {
		update:function(cb_uid, m_uid, c_uid){
			try {
				$.ajaxSetup({dataType:"text"});
				$.post('./sphone_letter_confirm_proc.htm',{
					cb_uid: cb_uid,
					m_uid: m_uid,
					c_uid: c_uid
				},function(request){
					request_parse = jQuery.parseJSON(request);
					if(request_parse.ret == "succ"){
						//Trace.msg(request_parse.ret);
						Mover.refresh();
					} else {
						Mover.refresh();
					}
				});
			} catch(e) {
				alert('exception error...');
			}
			return false;
		}
	}
	var Like = {
		save_board_like:function(cb_uid, m_uid, c_uid){
			try {
				$.ajaxSetup({dataType:"text"});
				$.post('./sphone_save_board_like_proc.htm',{
					cb_uid: cb_uid,
					m_uid: m_uid,
					c_uid: c_uid
				},function(request){
					request_parse = jQuery.parseJSON(request);
					if(request_parse.ret == "succ"){
						//Trace.msg(request_parse.ret);
						if(request_parse.items.like_flag == "like"){
							alert("liked");
						} else {
							alert("unliked");
						}
						Mover.refresh();
					} else {
						Mover.refresh();
					}
				});
			} catch(e) {
				alert('exception error...');
			}
			return false;
		},
		save_letter_like:function(cb_uid, m_uid, c_uid){
			try {
				$.ajaxSetup({dataType:"text"});
				$.post('./sphone_save_letter_like_proc.htm',{
					cb_uid: cb_uid,
					m_uid: m_uid,
					c_uid: c_uid
				},function(request){
					request_parse = jQuery.parseJSON(request);
					if(request_parse.ret == "succ"){
						//Trace.msg(request_parse.ret);
						if(request_parse.items.like_flag == "like"){
							alert("liked");
						} else {
							alert("unliked");
						}
						Mover.refresh();
					} else {
						Mover.refresh();
					}
				});
			} catch(e) {
				alert('exception error...');
			}
			return false;
		}
	}
	var Cmt = {
		del:function(m_uid, c_uid, cb_uid, cbc_uid){
			try {
				$.ajaxSetup({dataType:"text"});
				$.post('./sphone_delete_board_cmt_proc.htm',{
					cb_uid: cb_uid,
					m_uid: m_uid,
					c_uid: c_uid,
					cbc_uid: cbc_uid
				},function(request){
					request_parse = jQuery.parseJSON(request);
					if(request_parse.ret == "succ"){
						Mover.refresh();
						Trace.msg(request_parse.ret);
						//if(request_parse.items.like_flag == "like"){
						//	alert("delete");
						//} else {
						//alert("unliked");
						//}
						//Mover.refresh();
					} else {
						Mover.refresh();
					}
				});
			} catch(e) {
				alert('exception error...');
			}
			return false;
		}
	}
	var Popup_profile = {
		cnt_cb_uid:0,
		cnt_cb_kind:"",
		preprc_event_remaining:"",
		preprc:function(pthis){
			this.preprc_event_remaining = $(pthis).parent().parent().attr('onclick');
			$(pthis).parent().parent().attr('onclick', '');
		},
		view:function(target, p_nick, p_name, p_cnt_cb_uid, p_cnt_cb_kind, p_is_display, p_m_uid){
			Popup_profile.cnt_cb_uid = p_cnt_cb_uid;
			Popup_profile.cnt_cb_kind = p_cnt_cb_kind;
			$('#POPUP_PROFILE').css('display','block');
			$('#popup_profile_img').attr('src', $(target).children().attr('src'));
			$('#popup_profile_nick').text( p_nick );
			$('#popup_profile_name').text( p_name );
			$('#popup_profile_msg').attr('style','display:none;');
			if(p_is_display == 'true'){
				$('#popup_profile_msg').attr('style','display:block;');
				$('#popup_profile_msg').children().attr('style','cursor:pointer').bind('click',function(e){
					//Trace.msg('@todo 쪽지보내기로 리디렉션 구현 ');
					Mover.href('./sphone_letter_write.htm?send_to='+p_m_uid+'');
				});
			}

			//alert(   $(target).siblings().children().siblings().html() );
		},
		close_layer:function(){
			$('#cb_uid_content'+Popup_profile.cnt_cb_uid).bind('click', function(){
				//Trace.msg(Popup_profile.cnt_cb_uid);
				//Trace.msg(Popup_profile.cnt_cb_kind);
				Mover.href('./sphone_board_view.htm?cb_uid='+Popup_profile.cnt_cb_uid+'&cb_kind='+Popup_profile.cnt_cb_kind+'')
			});
			$('#POPUP_PROFILE').css('display','none');
			$('#cnt_once'+Popup_profile.cnt_cb_uid).parent().attr('onclick', Popup_profile.preprc_event_remaining);
		},
		leave_view:function(){
			$('#POPUP_PROFILE').css('display','block');
			$('#popup_profile_img').attr('src', '../img/20120723_people_motion.png');
			$('#popup_profile_nick').text('탈퇴한 회원입니다.' );
			$('#popup_profile_name').text('');
			$('#popup_profile_msg').attr('style','display:none;');
		}
	}
	var ClassLeft = {
		show: function(){
			var url = window.location.href;
			Mover.href('sphone_class_left.htm?p_url='+url);
		},
		hide:function(purl){
			Mover.href(purl);
		},
		call_sett:function(pcuid){
			AjaxAction.call({"url" : {throw_url:"./sphone_change_class.htm"}, "val" : {c_uid:pcuid}, "callback" : {func_success:AjaxAction.change_class_success}});
		},
		call_sett_preference:function(pcuid){
			AjaxAction.call({"url" : {throw_url:"/preference/preference_change_class.htm"}, "val" : {c_uid:pcuid}, "callback" : {func_success:Mover.home}});
		}
	}
	var AlarmMover = {
		board:function(cb_uid, c_uid){
			Mover.href('sphone_board_view.htm?cb_uid='+cb_uid+'&c_uid='+c_uid);
		},
		letter:function(cb_uid, c_uid){
			Mover.href('sphone_letter_view.htm?cb_uid='+cb_uid+'&c_uid='+c_uid);
		},
		invite:function(cm_uid){
			Mover.href('sphone_sett_my_invite_list_detail.htm?cm_uid='+cm_uid);
		},
		invite_fallen:function(cm_uid){
			alert("이미 처리된 초대장 입니다.");
			return false;
		}
	}
	var AppFooter = {
		content:function(pSrc){
			//$('#cont').attr('src', src);
			document.location.href = pSrc;
		}
	}
	var MyPush = {
		update:function(push_flag){
			try {
				$.ajaxSetup({dataType:"text"});
				$.post('./sphone_set_my_push.htm',{
					push_flag: push_flag
				},function(request){
					request_parse = jQuery.parseJSON(request);
					if(request_parse.ret == "succ"){
						//Trace.msg(request_parse.ret);
						Mover.refresh();
					} else {
						Mover.refresh();
					}
				});
			} catch(e) {
				alert('exception error...');
			}
			return false;
		}
	}
	//이미지를 자르지 않고 CSS 스프라이트로 하면 좋을텐데 이미지를 잘라놔서 로직을 이렇게짬. -_-
	var Nav = {
		currentObjId:"",
		over:function(obj){
			//Nlog.puts(Nav.currentObjId);
			if($(obj).attr('id') == Nav.currentObjId){
				//$(obj).attr('src', $(obj).attr('src').replace('.png','') );
			} else {
				$(obj).attr('src', $(obj).attr('src').replace('.png','ov.png') );
			}
			for(var i=0;i<=3;i++){
				$("#s"+i).attr('style','display:none');
			}
			var a = $(obj).attr('id');
			var b = a.replace('n','s');
			$("#"+b).attr('style','display:block');
		},
		out:function(obj){
			if($(obj).attr('id') == Nav.currentObjId){
			} else {
				$(obj).attr('src', $(obj).attr('src').replace('ov.png','.png') );
			}
		},
		currentActive:function(obj, sobj){
			Nav.over($(obj));
			$(sobj).attr('class','orange');
			Nav.currentObjId = $(obj).attr('id');
		},
		currentActiveCustomer:function(obj){
			Nav.over($(obj));
			Nav.currentObjId = $(obj).attr('id');
		}
	}

	<!--
	/****************************************************************************************************************************************************************
	 * 자바스크립트 클래스 형태 및 메서드를 json 방식으로 작성
	 *
	 * @(#) script.js<p>
	 *
	 * Version : v 1.0<br>
	 * Date : 2010. 08. 31.<br>
	 * @author : naiyumie
	 ****************************************************************************************************************************************************************/


	/****************************************************************************************************************************************************************
	 * 공통 모음
	 ****************************************************************************************************************************************************************/


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Mover : 페이지를 이동 시킵니다.
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------

	var Mover = {
		//이동.. 크로스 브라우징 때문에 메서드가 바뀜...
		href : function(urlParm) {
			if(new RegExp(/MSIE/).test(navigator.userAgent)) {
				document.location.href(urlParm);
			} else if(new RegExp(/Firefox/).test(navigator.userAgent)) {
				document.location.replace(urlParm);
			} else if(new RegExp(/Chrome/).test(navigator.userAgent)){
				document.location.replace(urlParm);
			} else {
				document.location.replace(urlParm);
			}
		},
		//이동.. 크로스 브라우징 때문에 메서드가 바뀜...
		//href와 하는 역할은 똑같음
		replace : function(url) {
			window.location.replace(url);
			if(new RegExp(/MSIE/).test(navigator.userAgent)) {
				document.location.href(url);
			} else if(new RegExp(/Firefox/).test(navigator.userAgent)) {
				document.location.replace(url);
			} else if(new RegExp(/Chrome/).test(navigator.userAgent)){
				document.location.replace(url);
			} else {
				document.location.replace(urlParm);
			}
		},
		//뒤로...
		back : function() {
			window.history.go(-1);
		},
		//인덱스로...
		home : function() {
			Mover.href("?uri=main");
		},

		//매뉴얼...
		manual : function() {
			//var downFile = encodeURI("WebVoice_UserManuals.pdf");
			//var downFile = encodeURI("WebTutor_UserManuals.zip");
			window.open("?uri=doc&mod=listeningTest","down","toolbar=no,scrollbars=yes,location=no,status=no,menubar=no,resizable=yes,width=800,height=600");
		},
		demo : function() {
			Mover.href("?uri=demo");
		},

		//기타메뉴들...
		myPage : function(){
			Mover.href("?uri=myPage");
		},
		about : function(){
			Mover.href("?uri=about");
		},
		listeningTest : function(){
			Mover.href("?uri=listeningTest");
		},
		multiAnnouncer : function(){
			Mover.href("?uri=multiAnnouncer");
		},
		experience : function(){
			Mover.href("?uri=experience");
		},
		studyRoom : function(){
			Mover.href("?uri=studyRoom");
		},
		testRoom : function(){
			Mover.href("?uri=testRoom");
		},
		//로그인&로그아웃
		login : function() {
			Mover.href("?uri=login");
		},
		logout : function() {
			Mover.href("?uri=logout");
		},

		//회원가입
		member : function(){
			Mover.href("?uri=member");
		},
		memberJoin : function (){
			Mover.href("?uri=member&mod=join");
		},
		memberFind : function (){
			Mover.href("?uri=member&mod=find");
		},
		memberModify : function (){
			Mover.href("?uri=member&mod=modify");
		},
		memberLeave : function (){
			Mover.href("?uri=member&mod=leave");
		},

		//고객지원
		support : function(){
			Mover.href("?uri=support");
		},
		customer : function(){
			Mover.href("?uri=support"+"&mod=customer");
		},
		rules : function(){
			Mover.href("?uri=support"+"&mod=rules");
		},
		personal : function(){
			Mover.href("?uri=support"+"&mod=personal");
		},

		//기출문제
		sample : function(){
			Mover.href("?uri=sample");
		},
		//팝업 자식창에서 부모창을 로그인으로...
		openerLogin : function() {
			var homeContext = "?uri=login";
			if(new RegExp(/MSIE/).test(navigator.userAgent)) {
				opener.location.href(homeContext);
			} else if(new RegExp(/Firefox/).test(navigator.userAgent)) {
				opener.location.replace(homeContext);
			} else if(new RegExp(/Chrome/).test(navigator.userAgent)){
				opener.location.replace(homeContext);
			} else {
				document.location.replace(homeContext);
			}
		}
	}

	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Mover : 페이지를 이동 시킵니다.
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------

	//돔을 잡습니다.
	var Picker = {
		element:function(element) {
			if(document.getElementById(element)){
				return true;
			} else {
				return false;
			}
		},
		DOM_ID : function(element){
			return document.getElementById(element);
		},
		DOM_NAME : function(element){
			return document.getElementByName(element);
		}
	}

	//델리게이트 패턴 $$를 document.getElementById()로 사용. jQuery가 동작 하지 않을 예외 상황에
	var $$ = Picker.DOM_ID;
	var $$$ = Picker.DOM_NAME;

	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Alert : 얼럿을 관리 합니다.
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------

	//메세지를 출력합니다.
	var theAlertMessageEnabled = false;

	//디버그 메세지를 출력 합니다.
	var theAlertDebugEnabled = false;

	var Alert = {
		message : function(param){
			if(theAlertMessageEnabled){
				alert(param);
			} else {
				return;
			}
		},
		debug : function(param){
			if(theAlertDebugEnabled){
				alert(param);
			} else {
				return;
			}
		}
	}

	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// theConsoleDebugEnabled : 파이어폭스및 ie8이상에서 지원하는 디버그 콘솔 켜기 끄기 옵션 입니다.
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------

	//디버그 콘솔을 사용합니다.
	var theConsoleDebugEnabled = false;







	/****************************************************************************************************************************************************************
	 * 페이지 종속적인것들 모음
	 ****************************************************************************************************************************************************************/


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// GNB
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var Gnb = {
		interactive : function(){
			//잡는 객체
			var navArr = new Array("#nav1","#nav2","#nav3","#nav4","#nav5","#nav6","#nav7","#nav8","#nav9");

			//네비게이션에 마우스 오버, 아웃 액션을 달아줍니다.
			for (var i=0; i<=navArr.length; i++) {
				$("#nav"+i).bind('mouseover', function(){
					$(this).removeClass(this.id+"normal");
					$(this).addClass(this.id+"active");
				}).bind('mouseout', function(){
					$(this).removeClass(this.id+"active");
					$(this).addClass(this.id+"normal");
				});
			}
			$("#nav1").bind('click', function(){Mover.about();});
			$("#nav2").bind('click', function(){Mover.listeningTest();});
			$("#nav3").bind('click', function(){Mover.multiAnnouncer();});
			$("#nav4").bind('click', function(){Mover.experience();});
			$("#nav5").bind('click', function(){Mover.studyRoom();});
			$("#nav6").bind('click', function(){Mover.testRoom();});
			$("#nav7").bind('click', function(){Mover.support();});
			$("#nav8").bind('click', function(){Mover.sample();});
			$("#nav9").bind('click', function(){Mover.demo();});

		   /* $("#nav5").add("#nav6").hide();*/
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Main
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var Main = {
		interactive :function(){

			$("#linkListeningTest").bind('click', function(){
				Mover.listeningTest();
			});
			$("#linkMultiAnnouncer").bind('click', function(){
				Mover.multiAnnouncer();
			});

			$(".buttonNormal").bind('mouseover', function(){
				$(".buttonNormal").addClass("buttonActive");
			});
			$(".buttonNormal").bind('mouseout', function(){
				$(".buttonNormal").removeClass("buttonActive");
				$(".buttonNormal").addClass("buttonNormal");
			});

			//linkArea
			$("#install").bind('click', function(){
				Mover.href("?uri=support&mod=dotNetInstall");
			});
			$("#manual").bind('click', function(){
				Mover.manual();
			});
			$("#qna").bind('click', function(){
				Mover.support();
			});
			$("#demo").bind('click', function(){
				Mover.demo();
			});

			//듣기평가 샘플구현
			$("#listenDobuttonPlay").bind('click', function(){
				tracing($("#selectListen").val());

				$("#listenDobuttonPlay").css('display','none');
				$("#listenDobuttonStop").css('display','block');
				//$("#listenDobuttonPlay").hide();
				//$("#listenDobuttonStop").show();
			});

			//듣기평가 샘플정지
			$("#listenDobuttonStop").bind('click', function(){
				tracing("stop");
				$("#listenDobuttonPlay").css('display','block');
				$("#listenDobuttonStop").css('display','none');
			});

			//다국어방송체험
			$("#dobutton").bind('click', function(){
				Mover.experience();
			});

		}
	}

	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Main-LayerPopUp
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	//레이어 팝업
	var LayerPop = {
		initializing : function(viewAble) {
			$("#nextDayDoNotOpenThisLayerPopUp").bind('click', function(){
				LayerPopCookie.saveView();
				$("#today").attr("checked", true);
			});

			$("#iLayer").draggable();
			$("#iLayer").css("left",($(window).width() + $(window).scrollLeft())/2 - $("#iLayer").width()/2);
			$("#iLayer").css("top",($(window).height() + $(window).scrollTop())/2 - $("#iLayer").height()/2);
			$("#iLayerBG").css('opacity',0.5);
			$("#iLayer > .closeBtn").bind('click', LayerPop.closed);

			if(viewAble == true) {
				$("#iLayer").css("display","block");
				$("#iLayerBG").css("display","block");
			} else if(viewAble == false) {
				$("#iLayer").css("display","none");
				$("#iLayerBG").css("display","none");
			}
		},
		closed : function() {
			$("#iLayer").css("display","none");
			$("#iLayerBG").css("display","none");
		}
	}

	//layerPopup이 쿠키를 이용하여 켜고 끌 수 있는 부분
	var LayerPopCookie = {
		setCookie : function(name, value, expires) {
			document.cookie = name + "=" + escape (value) + "; path=/; expires=" + expires.toGMTString();
			LayerPop.initializing(false);
		},
		saveView : function() {
			var expdate = new Date();
			if (document.getElementById('today').checked) {
				expdate.setTime(expdate.getTime() + 1000 * 3600 * 24 * 30); //30일
			} else {
				expdate.setTime(expdate.getTime() - 1);
			}
			LayerPopCookie.setCookie("layerPopup", "false", expdate);
		},
		getView : function() {
			document.getElementById("today").checked = LayerPop.initializing(false);
		},
		getCookie : function(Name) {
			var search = Name + "="
			if (document.cookie.length > 0) {
				offset = document.cookie.indexOf(search)
				if (offset != -1) {
					offset += search.length
					end = document.cookie.indexOf(";", offset)
						if (end == -1)
							end = document.cookie.length
					return unescape(document.cookie.substring(offset, end))
				}
			}
			return "";
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// SideBar : 로그인을 포함한 사이드바에서 사용하는 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------

	//자바스크립트에 의한 자식창 호출시 참조되는 전역 변수
	var popupWin;

	//실행 메시지
	var runningMessage = "현재 멀티 아나운서가 실행 중입니다. 작업 표시줄을 확인해 보시기 바랍니다.";

	var SideBar = {
		interactive : function(){

			//sideBar
			$("#sideHelp").bind('click',function(){
				Mover.href("?uri=support&mod=dotNetInstall");
			});

			$("#sideManuals").bind('click',function(){
				Mover.manual();
			});

			$("#sideQna").bind('click',function(){
				Mover.support();
			});

			$("#listeningTestButtonNormal").bind('click',function(){
			   Mover.href("?uri=support&mod=dotNetInstall");
			});
			$("#MultiAnnouncerButtonNormal").bind('click',function(){
			   Mover.href("?uri=support&mod=JVMInstall");
			});

	//        //리스닝 테스트
	//        $(".listeningTestButtonNormal").bind('mouseover', function(){
	//            $(".listeningTestButtonNormal").addClass("listeningTestButtonActive");
	//        });
	//        $(".listeningTestButtonNormal").bind('mouseout', function(){
	//            $(".listeningTestButtonNormal").removeClass("listeningTestButtonActive");
	//            $(".listeningTestButtonNormal").addClass("listeningTestButtonNormal");
	//        });
	//        $(".listeningTestButtonNormal").bind('click', function(){
	//            Mover.href("_app/ListeningTest.zip");
	//        });
	//
	//        $(".listeningTestButtonNormalLT").bind('mouseover', function(){
	//            $(".listeningTestButtonNormalRT").addClass("listeningTestButtonActiveRT");
	//            $(".listeningTestButtonNormalLT").addClass("listeningTestButtonActiveLT");
	//        });
	//        $(".listeningTestButtonNormalLT").bind('mouseout', function(){
	//            $(".listeningTestButtonNormalRT").removeClass("listeningTestButtonActiveRT");
	//            $(".listeningTestButtonNormalLT").removeClass("listeningTestButtonActiveLT");
	//            $(".listeningTestButtonNormalLT").addClass("listeningTestButtonNormalLT");
	//        });
	//        $(".listeningTestButtonNormalLT").bind('click', function(){
	//            Mover.href("_app/ListeningTest.zip");
	//        });
	//
	//        $(".listeningTestButtonNormalRT").bind('mouseover', function(){
	//            $(".listeningTestButtonNormalLT").addClass("listeningTestButtonActiveLT");
	//            $(".listeningTestButtonNormalRT").addClass("listeningTestButtonActiveRT");
	//        });
	//        $(".listeningTestButtonNormalRT").bind('mouseout', function(){
	//           $(".listeningTestButtonNormalRT").removeClass("listeningTestButtonActiveRT");
	//            $(".listeningTestButtonNormalLT").removeClass("listeningTestButtonActiveLT");
	//            $(".listeningTestButtonNormalRT").addClass("listeningTestButtonNormalRT");
	//        });
	//        $(".listeningTestButtonNormalRT").bind('click', function(){
	//            Mover.href("_app/ListeningTest_FrameWork.zip");
	//        });

	//
	//        $(".MultiAnnouncerButtonNormal").bind('mouseover', function(){
	//            $(".MultiAnnouncerButtonNormal").addClass("MultiAnnouncerButtonActive");
	//        });
	//        $(".MultiAnnouncerButtonNormal").bind('mouseout', function(){
	//            $(".MultiAnnouncerButtonNormal").removeClass("MultiAnnouncerButtonActive");
	//            $(".MultiAnnouncerButtonNormal").addClass("MultiAnnouncerButtonNormal");
	//        });
	//        //멀티 아나운서
	//        $(".MultiAnnouncerButtonNormal").bind('click', function(){
	//            Alert.debug("myCookie > "+document.cookie);
	//            var popupchecker = CookieMaster.getCookie("popupcheck");
	//             Alert.debug("my popupchecker values > "+popupchecker);
	//            if(popupchecker == ""){
	//                CookieMaster.setCookie("popupcheck", "true");
	//                SideBar.popup();
	//                popupWin.focus();
	//            } else {
	//                Alert.message("my popupchecker values > "+ popupchecker);
	//                if($("#dialog").length > 0){
	//                    $('#dialog').dialog('open').dialog("option", "resizable", false).effect('highlight','','slow');
	//                }
	//                return;
	//            }
	//        });

			//리스닝 테스트 과거 메서드
	//        $("#listeningTestDownloadButton").bind('click',function(){
	//            var version = $("#ListeningTestDownLoad").val();
	//            var uri = "";
	//                switch(parseInt(version)) {
	//                    case 1:
	//                        uri += "_app/ListeningTest.zip";
	//                    break;
	//                    case 2:
	//                        uri += "_app/ListeningTest_FrameWork.zip";
	//                    break;
	//                    case 3:
	//                        uri += "_app/Vista_ListeningTest.zip";
	//                    break;
	//                    case 4:
	//                        uri += "_app/Vista_ListeningTest_FrameWork.zip";
	//                    break;
	//                    case 5:
	//                        uri += "_app/DotNetFX35.zip";
	//                    break;
	//                    default:
	//                        uri += "";
	//                    break;
	//                }
	//            window.open(uri, 'lt', 'top=0, left=0, height=780, width=1125, toolbar=no, status=no, scrollbars=yes, resizable=yes');
	//        });
			//리스닝 테스트 신=ㅅ=a;
			$("#listeningTestDownloadButton").bind('click',function(){
				//SideBar.download();
				Mover.href("http://www.webvoice.co.kr/?uri=support&mod=dotNetInstall");
			});


			//joinMember
			$("#joinMemberButton").bind('click', function(){
				Mover.memberJoin();
			});

			//로그인 전
			$("#idInput").add("#pwInput").bind('focus', function(){
				$(this).addClass("inputActive");
				$(this).bind('keypress', function(){
					if(event.keyCode == "13") $("#loginButton").trigger('click');
				});
			});
			$("#idInput").add("#pwInput").bind('blur', function(){
				$(this).removeClass("inputActive");
				$(this).addClass("inputNormal");
			});
			$("#loginButton").bind('mouseover', function(){
				$(this).addClass("loginButtonActive");
			});
			$("#loginButton").bind('mouseout', function(){
				$(this).removeClass("loginButtonActive");
				$(this).addClass("loginButtonNormal");
			});
			$("#loginButton").bind('click', function(){
				Checker.loginFormChecker();
			});
			$("#idPwFind").bind('click', function(){
				Mover.memberFind();
			});
			$('#checksaveid').add('#checksaveidLabel').bind('click', function() {
				Cookier.saveid();
			});

			//로그인 후
			$("#myInfo").bind('click', function(){
				Mover.myPage();
			});
			//로그인 후 내정보수정
			$("#myInfoExtend").bind('click', function(){
				Mover.memberModify();
			});
			$("#logOutbutton").bind('click', function(){
				Mover.logout();
			});

			//jQuery UI Dialog
			$('#dialog').dialog({
				autoOpen: false,
				width: 600,
				buttons: {
					"창 찾기": function() {
							$(this).dialog("close");
							if(popupWin) {
								popupWin.focus();
							} else if(!popupWin) {
								if(CookieMaster.getCookie("popupcheck", "true")) {
									alert(runningMessage);
								}
							}
					},
					"다시 띄우기": function() {
						JvmInstall.openPop();
						popupWin.focus();
						$(this).dialog("close");
					}
				}
			});
		},
		download : function(){
			var uri = "_app/program/ListeningTest.exe";
			Mover.href("?uri=support&mod=dotNetInstall");
			window.open(uri, 'lt', 'top=0, left=0, height=1, width=1, toolbar=no, status=no, scrollbars=no, resizable=no');
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// CookieMaster : SideBar에서 참조하는 쿠키
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------

	//자바스크립트에 의한 자식창 호출시 참조되는 날짜
	var ExpDate = new Date();

	var CookieMaster = {
		getCookieVal : function(offset) {
			var endstr = document.cookie.indexOf ("=", offset);
			if (endstr == -1) endstr = document.cookie.length;
			return unescape(document.cookie.substring(offset, endstr));
		},
		getCookie : function(name) {
			var nameOfCookie = name + "=";
			var x = 0;
			while ( x <= document.cookie.length ){
				var y = (x+nameOfCookie.length);
				if ( document.cookie.substring( x, y ) == nameOfCookie ) {
				if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) {
					endOfCookie = document.cookie.length;
				}
					return unescape( document.cookie.substring( y, endOfCookie ) );
				}
				x = document.cookie.indexOf( " ", x ) + 1;
				if ( x == 0 )
				break;
			}
			return "";
		},
		setCookie : function(name, value) {
			var argv = CookieMaster.setCookie.arguments;
			var argc = CookieMaster.setCookie.arguments.length;
			var expires = (2 < argc) ? argv[2] : null;
			var path = (3 < argc) ? argv[3] : null;
			var domain = (4 < argc) ? argv[4] : null;
			var secure = (5 < argc) ? argv[5] : false;
			document.cookie = name + "=" + escape (value) +
				((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
				((path == null) ? "" : ("; path=" + path)) +
				((domain == null) ? "" : ("; domain=" + domain)) +
				((secure == true) ? "; secure" : "");
		},
		setCookieVal : function(name, value) {
			pathname = location.pathname;
			var myDomain = pathname.substring(0, pathname.lastIndexOf('/')) +'/';
			ExpDate.setTime(ExpDate.getTime() + 2000*60);
			CookieMaster.setCookie(name, value, ExpDate, myDomain);
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Checker 사이드바 로그인과 공용 로그인에서 동시에 폼값 체크에 사용되는 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var Checker = {
		loginFormChecker : function() {
			var msg="";

			if (document.forms.loginForm.idInput.value == "") {
				msg += "아이디를 입력하세요.\n";
			}

			if (document.forms.loginForm.pwInput.value == "") {
				msg += "비밀번호를 입력하세요.\n";
			}

			if(msg!=""){
				var msgvali = "「유효성 검사에서 통과하지 못하였습니다.」\n\n내용 : \n";
				alert(msgvali + msg);
				return false;
			} else {
				document.forms.loginForm.action = "?uri=_login";
				document.forms.loginForm.submit();
			}
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Cookier : 아이디를 세이브 하고 비밀번호를 세이브 하는 쿠키관리자
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var Cookier = {
		setCookie : function(name, value, expires) {
			document.cookie = name + "=" + escape (value) + "; path=/; expires=" + expires.toGMTString();
		},
		saveid : function() {
			var expdate = new Date();
			if (document.forms.loginForm.checksaveid.checked) {
				expdate.setTime(expdate.getTime() + 1000 * 3600 * 24 * 30); // 30일
			} else {
				expdate.setTime(expdate.getTime() - 1); // 쿠키 삭제조건
			}
			Cookier.setCookie("saveid", document.forms.loginForm.idInput.value, expdate);
		},
		getid : function() {
			document.forms.loginForm.checksaveid.checked = ((document.forms.loginForm.idInput.value = Cookier.getCookie("saveid")) != "");
		},
		getCookie : function(Name) {
			var search = Name + "="
			if (document.cookie.length > 0) { // 쿠키가 설정되어 있다면
				offset = document.cookie.indexOf(search)
				if (offset != -1) { // 쿠키가 존재하면
					offset += search.length
					// set index of beginning of value
					end = document.cookie.indexOf(";", offset)
					// 쿠키 값의 마지막 위치 인덱스 번호 설정
						if (end == -1)
							end = document.cookie.length
					return unescape(document.cookie.substring(offset, end))
				}
			}
			return "";
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Login : 공용 로그인에 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var Login = {
		interactive : function() {
			$("#loginwrap > .loginLink").bind('click', function(){
				Mover.home();
			});
			$("#loginButton").bind('click', function(){
				Checker.loginFormChecker();
			});
			$('#checksaveid').add('#checksaveidLabel').bind('click', function() {
				Cookier.saveid();
			});

			$("#idInput").add("#pwInput").bind('focus', function(){
				$(this).addClass("inputActive");
				$(this).bind('keypress', function(){
					if(event.keyCode == "13") $("#loginButton").trigger('click');
				});
			});
			$("#idInput").add("#pwInput").bind('blur', function(){
				$(this).removeClass("inputActive");
				$(this).addClass("inputNormal");
			});
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// About : About에 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var About = {
		interactive : function() {
		},
		initialize : function() {
			$("#nav1").trigger('mouseover').unbind('mouseout');
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Experience : Experience 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var Experience = {
		interactive : function() {
		},
		initialize : function() {
			$("#nav4").trigger('mouseover').unbind('mouseout');
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Member : Member 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var Member = {
		interactive : function() {
			$(document).ready (function() {
				/* 컨펌 버튼 */
				$("#buttonConfirm").bind('click', function(){
					JoinChecker.undefenedChecker();
				})

				$("#ForeignFirstName").add("#ForeignLastName").add("#ForeignRegi").hide();
				$("#memberClassKorean").bind('click',function(){
					$("#KoreaName").add("#KoreaRegi").show();
					$("#ForeignFirstName").add("#ForeignLastName").add("#ForeignRegi").hide();
					$("#regiValiTrue").add("#regiValiFalse").add("#regiForeignValiTrue").add("#regiForeignValiFalse").hide();
				});
				$("#memberClassForign").bind('click',function(){
					$("#KoreaName").add("#KoreaRegi").hide();
					$("#ForeignFirstName").add("#ForeignLastName").add("#ForeignRegi").show();
					$("#regiValiTrue").add("#regiValiFalse").add("#regiForeignValiTrue").add("#regiForeignValiFalse").hide();
				});

				//주민등록번호-일반회원
				$("#buttonRegiCheck").bind('click', function(){
					$("#regiValiTrue").hide();
					$("#regiValiFalse").hide();
					JoinChecker.regiChecker();
				});
				$("#regiKoreaIptSecond").add("#regiKoreaIptFirst").bind('keypress', function(){
					if(event.keyCode == "13") $("#buttonRegiCheck").trigger('click');
				});

				//주민등록번호-국내거주외국인
				$("#buttonRegiForeignCheck").bind('click', function(){
					$("#regiForeignValiTrue").hide();
					$("#regiForeignValiFalse").hide();
					JoinChecker.regiForeignChecker();
				});
				$("#regiForeignIptSecond").add("#regiForeignIptFirst").bind('keypress', function(){
					if(event.keyCode == "13") $("#regiForeignValiTrue").trigger('click');
				});

				/*3) 회원정보및 추가사항 등록 부분*/
				$("#memberDivsion1").bind('click',function(){
					Member.allHide();
				});
				$("#memberDivsion2").bind('click',function(){
					Member.allHide();
					$("#optionStudentSchool").add("#optionNormal").add("#optionStudentGrade").add("#optionStudentClass").add("#optionStudentNumer").show();
				});
				$("#memberDivsion3").bind('click',function(){
					Member.allHide();
					$("#optionTeacherSchool").add("#optionNormal").add("#optionTeacherSubject").add("#optionTeacherClass").add("#optionTeacherNumer").show();
				});
				$("#memberDivsion4").bind('click',function(){
					Member.allHide();
					$("#optionFinancial").add("#optionNormal").show();
				});

				//pw, 체크
				$("#pwIpt").keypress(function(){
					JoinChecker.passwordChecker();
				});

				//pwConfirm 체크
				$("#pwConfirmIpt").keyup(function(){
					JoinChecker.passwordEqualsChecker();
				});

				//email 체크
				$("#emailIpt").keyup(function(){
					JoinChecker.checkEmailFormat();
				});

				//idIpt 한글 입력 방지
				$("#idIpt").bind('blur focus keypress keydown click select mouseover mouseout mousemove', function(){
					if(!/(^[a-zA-Z0-9\-_]+$)/.test(document.forms.joinForm.idIpt.value)){
						document.forms.joinForm.idIpt.value = "";
					}
				});

				//회원가입 취소
				$("#buttonCancle").bind('click',function(){
					if(confirm("회원가입을 취소 하시겠습니까?")){
						Mover.home();
					}
				});

				//아이디 중복 체크
				$("#buttonIdCheck").bind('click', function(){
					$("#idCheckResult").load('?uri=member&mod=__IdCheck',{idInput:document.forms.joinForm.idIpt.value});
					idCheckResult = true;
					JoinChecker.colsolPrint();
				});

				//아이디 중복체크 할때 엔터키 누를시 동작되게
				$("#idIpt").bind('keypress blur', function(){
					if(event.keyCode == "13") $("#buttonIdCheck").trigger('click');
				});

				//별명 중복 체크
				$("#buttonNickCheck").bind('click', function(){
				   $("#nickCheckResult").load('?uri=member&mod=__NickCheck',{nickInput:document.forms.joinForm.nickIpt.value});
				   //nickCheckResult = true;
				   JoinChecker.colsolPrint();
				});

				//별명 중복체크 할때 엔터키 누를시 동작되게
				$("#nickIpt").bind('keypress blur focus', function(){
					if(event.keyCode == "13") $("#buttonNickCheck").trigger('click');
				});

				//주민등록 번호 휴대전화 번호, 유선전화번호 숫자만 받을 수 있게한다.
				$("#regiKoreaIptFirst")
				.add("#regiKoreaIptSecond")
				.add("#hpIptFirst")
				.add("#hpIptSecond")
				.add("#hpIptThird")
				.add("#telIptFirst")
				.add("#telIptSecond")
				.add("#telIptThird").keypress(function(){
					if((event.keyCode<48)||(event.keyCode>57)){
						event.returnValue = false;
					}
				});

				//우편번호 검색
				$("#buttonAddressCheck").bind('click', function(){
					 $("#zipResult").load('?uri=member&mod=__zipCode',{addr:document.forms.joinForm.addressIpt.value});
				});

				//우편번호 검색체크 할때 엔터키 누를시 동작되게
				$("#addressIpt").bind('keypress blur focus', function(){
					if(event.keyCode == "13") $("#buttonAddressCheck").trigger('click');
				});
			});
		},
		onlyNumber : function(loc) {
			if(/[^0123456789]/g.test(loc)) {
				alert("숫자가 아닙니다.\n\n0-9의 정수만 허용합니다.");
			}
		},
		initialize : function() {
			$("#nav7").trigger('mouseover').unbind('mouseout');
			JoinChecker.intialize();
			Member.allHide();

			//jQuery birthIpt setter
			$("#birthIpt").datepicker( "option", "dayNamesMin", ['일', '월', '화', '수', '목', '금', '토']);
			$("#birthIpt").datepicker({dateFormat: 'yy-mm-dd'});
			$("#birthIpt").datepicker("option", "monthNames", ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월']);
			$("#birthIpt").datepicker();
		},
		allHide : function() {
			$("#optionNormal").hide();
			$("#optionStudentSchool").add("#optionStudentGrade").add("#optionStudentClass").add("#optionStudentNumer").hide();
			$("#optionTeacherSchool").add("#optionTeacherSubject").add("#optionTeacherClass").add("#optionTeacherNumer").hide();
			$("#optionFinancial").hide();
		}
	}

	var JoinChecker = {
		 intialize : function() {
		 },
		 regiChecker : function (){
			var regi1 = document.forms.joinForm.regiKoreaIptFirst.value;
			var regi2 = document.forms.joinForm.regiKoreaIptSecond.value;
			var regi = regi1 + regi2;

			for(var i=0; i<regi.length; i++) {
				if(isNaN(parseInt(regi.charAt(i)))){
					$("#regiValiResult").html("<span class=\"db falseResult\">올바르지 않은 주민등록번호 입니다.</span>");
					return;
				}
			}

			var total = 0;
			for(var i = 0; i < regi.length; i++){
				if(i <= 7){
					total += parseInt(regi.charAt(i)) * (i + 2);
				}else if(i >= 8 && i <=11){
					total += parseInt(regi.charAt(i)) * (i - 6);
				}
			}

			var check = (11 - (total % 11)) % 10;
			if(parseInt(check) == parseInt(regi.charAt(12))){
				$("#regiValiResult").html("<span class=\"db trueResult\">올바른 주민등록번호 입니다.</span>");
				regiCheckerResult = true;
				regiForeignCheckerResult = true;
				JoinChecker.colsolPrint();
				//$("#birthIpt").

				var firstBirth = $("#regiKoreaIptFirst").val().substr(0,2);
				var secondBirth = $("#regiKoreaIptFirst").val().substr(2,2);
				var thirdBirth = $("#regiKoreaIptFirst").val().substr(4,2);
				var myBirth = "19" + firstBirth + "-" + secondBirth + "-" + thirdBirth;
				$("#birthIpt").val(myBirth);
			}else{
				$("#regiValiResult").html("<span class=\"db falseResult\">올바르지 않은 주민등록번호 입니다.</span>");
			}
		},
		regiForeignChecker: function (){
			var fgn_reg_no = document.forms.joinForm.regiForeignIptFirst.value + document.forms.joinForm.regiForeignIptSecond.value;

			if (fgn_reg_no == ''){
				$("#regiForeignValiResult").html("<span class=\"df falseResult\">올바르지 않은 외국인등록번호 입니다.</span>");
				return false;
			}

			if (fgn_reg_no.length != 13) {
				$("#regiForeignValiFalse").css('display','block');
				return false;
			}
			if ((fgn_reg_no.charAt(6) == "5") || (fgn_reg_no.charAt(6) == "6")) {
				birthYear = "19";
			} else if ((fgn_reg_no.charAt(6) == "7") || (fgn_reg_no.charAt(6) == "8")) {
				birthYear = "20";
			} else if ((fgn_reg_no.charAt(6) == "9") || (fgn_reg_no.charAt(6) == "0")) {
				birthYear = "18";
			} else {
				$("#regiForeignValiResult").html("<span class=\"df falseResult\">올바르지 않은 외국인등록번호 입니다.</span>");
				return false;
			}
			birthYear += fgn_reg_no.substr(0, 2);
			birthMonth = fgn_reg_no.substr(2, 2) - 1;
			birthDate = fgn_reg_no.substr(4, 2);
			birth = new Date(birthYear, birthMonth, birthDate);

			if ( birth.getYear() % 100 != fgn_reg_no.substr(0, 2) ||
				birth.getMonth() != birthMonth ||
				birth.getDate() != birthDate) {
				$("#regiForeignValiResult").html("<span class=\"df falseResult\">올바르지 않은 외국인등록번호 입니다.</span>");
				return false;
			}

			if (fgn_no_chksum(fgn_reg_no) == false){
				$("#regiForeignValiResult").html("<span class=\"df falseResult\">올바르지 않은 외국인등록번호 입니다.</span>");
				return false;
			} else {
				$("#regiForeignValiResult").html("<span class=\"df trueResult\">올바른 외국인등록번호 입니다.</span>");
				regiForeignCheckerResult = true;
				regiCheckerResult = true;
				return true;
			}
		},
		passwordChecker : function() {
			if($("#pwIpt").val().length <= 7){
				$("#pwCheckResult").html("<span class=\"df lowResult\">너무짧음</span>");
			}
			if($("#pwIpt").val().length > 7 && $("#pwIpt").val().length < 15){
				$("#pwCheckResult").html("<span class=\"df middleResult\">보안양호</span>");
				passWordShortly = true;
				JoinChecker.colsolPrint();
			}
			if($("#pwIpt").val().length >= 15){
				$("#pwCheckResult").html("<span class=\"df highResult\">보안강력</span>");
				passWordShortly = true;
				JoinChecker.colsolPrint();
			}
		},

		passwordEqualsChecker : function() {
			if($("#pwConfirmIpt").val() == $("#pwIpt").val()){
				$("#pwEqualResult").html("<span class=\"df trueResult\">비밀번호가 일치합니다.</span>");
				passWordEquals = true;
				JoinChecker.colsolPrint();
			} else {
				 $("#pwEqualResult").html("<span class=\"df falseResult\">비밀번호가 일치 하지 않습니다.</span>");
				passWordEquals = false;
				JoinChecker.colsolPrint();
			}
		},
		checkEmailFormat : function () {
			if($("#emailIpt").val() != "") {
				reg = new RegExp("^[\\w\\-]+(\\.[\\w\\-_]+)*@[\\w\\-]+(\\.[\\w\\-]+)*(\\.[a-zA-Z]{2,3})$", "gi");
				if (!reg.test($("#emailIpt").val())) {
					$("#emailResult").html("<span class=\"df falseResult\">이메일 형식이 올바르지 않습니다.</span>");
				} else {
					$("#emailResult").html("<span class=\"df trueResult\">올바른 이메일 주소 입니다.</span>");
					emailCheckResult = true;
					JoinChecker.colsolPrint();
				}
			}
		},
		undefenedChecker : function () {
			var msg1="1) 회원가입을 위해 먼저 아래의 이용약관 및 개인정보취급방침을 꼭 읽어보신 후 동의해 주십시오.\n";
			var msg2="3) 회원 실명확인을 위한 정보를 입력 하십시오. \n";
			var msg3="4) 아래의 필수 고객정보를 등록해 주십시오.\n";
			var msg4="2) 아래의 회원정보및 추가 사항을 등록해 주십시오. \n";
			var msg1Alter="";
			var msg2Alter="";
			var msg3Alter="";
			var msg4Alter="";
			var flag1 = false;
			var flag2 = false;
			var flag3 = false;
			var flag4 = false;

			/*1)*/
			if (document.forms.joinForm.agreeCheckLicence.checked == "") {
				msg1Alter += ">> 이용약관 동의에 체크하세요.\n";
			}

			if (document.forms.joinForm.agreeCheckInfo.checked == "") {
				msg1Alter += ">> 개인정보 취급 정책 동의에 체크하세요.\n";
			}

			if (document.forms.joinForm.agreeCheckLicence.checked != "" && document.forms.joinForm.agreeCheckInfo.checked != "") {
				flag1 = true;
			}

			/*2)*/
			if (document.forms.joinForm.memberClassKorean.checked == true){
				if (document.forms.joinForm.nameKoreaIpt.value == ""){
					msg2Alter += ">> 일반회원 : 이름을 입력하세요.\n";
				}
				if (document.forms.joinForm.regiKoreaIptFirst.value == ""){
					msg2Alter += ">> 일반회원 : 주민등록번호 앞자리를 입력하세요.\n";
				}
				if (document.forms.joinForm.regiKoreaIptSecond.value == ""){
					msg2Alter += ">> 일반회원 : 주민등록번호 뒷자리를 입력하세요.\n";
				}

				if(document.forms.joinForm.nameKoreaIpt.value != "" && document.forms.joinForm.regiKoreaIptFirst.value != "" && document.forms.joinForm.regiKoreaIptSecond.value != ""){
					flag2 = true;
				}
			} else if(document.forms.joinForm.memberClassForign.checked == true){
				if (document.forms.joinForm.nameForeignIptFirst.value == ""){
					msg2Alter += ">> 국내거주 외국인 : 성을 입력하세요.\n";
				}
				if (document.forms.joinForm.nameForeignIptSecond.value == ""){
					msg2Alter += ">> 국내거주 외국인 : 이름을 입력하세요.\n";
				}
				if (document.forms.joinForm.regiForeignIptFirst.value == ""){
					msg2Alter += ">> 국내거주 외국인 : 외국인등록번호 앞자리를 입력하세요.\n";
				}
				if (document.forms.joinForm.regiForeignIptSecond.value == ""){
					msg2Alter += ">> 국내거주 외국인 : 외국인등록번호 뒷자리를 입력하세요.\n";
				}
				if(document.forms.joinForm.nameForeignIptFirst.value != "" && document.forms.joinForm.nameForeignIptSecond.value != "" && document.forms.joinForm.regiForeignIptFirst.value != "" && document.forms.joinForm.regiForeignIptSecond.value != ""){
					flag2 = true;
				}
			}

			/*3)*/
			if (document.forms.joinForm.idIpt.value == "") {
				msg3Alter += ">> 아이디를 입력 하세요.\n";
			}

			if (document.forms.joinForm.pwIpt.value == "") {
				msg3Alter += ">> 비밀번호를 입력 하세요.\n";
			}

			if (document.forms.joinForm.pwConfirmIpt.value == "") {
				msg3Alter += ">> 비밀번호확인을 입력 하세요.\n";
			}

			if (document.forms.joinForm.nickIpt.value == "") {
				msg3Alter += ">> 별명을 입력하세요.\n";
			}

			if (document.forms.joinForm.birthIpt.value == "") {
				msg3Alter += ">> 생년월일을 입력하세요.\n";
			}

			if (document.forms.joinForm.emailIpt.value == "") {
				msg3Alter += ">> 이메일을 입력하세요.\n";
			}


			if (document.forms.joinForm.hpIptFirst.value == "") {
				msg3Alter += ">> 휴대전화 번호 첫번째 자리를 입력하세요.\n";
			}

			if (document.forms.joinForm.hpIptSecond.value == "") {
				msg3Alter += ">> 휴대전화 번호 두번째 자리를 입력하세요.\n";
			}

			if (document.forms.joinForm.hpIptThird.value == "") {
				msg3Alter += ">> 휴대전화 번호 세번째 자리를 입력하세요.\n";
			}

			if (document.forms.joinForm.telIptFirst.value == "") {
				msg3Alter += ">> 유선전화 번호 첫번째 자리를 입력하세요.\n";
			}

			if (document.forms.joinForm.telIptSecond.value == "") {
				msg3Alter += ">> 유선전화 번호 두번째 자리를 입력하세요.\n";
			}

			if (document.forms.joinForm.telIptThird.value == "") {
				msg3Alter += ">> 유선전화 번호 세번째 자리를 입력하세요.\n";
			}

			if (document.forms.joinForm.addressIpt.value == "") {
				msg3Alter += ">> 주소 우편번호를 입력하세요.\n";
			}

			if (document.forms.joinForm.fulladdressIptFirst.value == "") {
				msg3Alter += ">> 주소를 입력하세요.\n";
			}

			if (document.forms.joinForm.fulladdressIptSecond.value == "") {
				msg3Alter += ">> 상세 주소를 입력하세요.\n";
			}

			if (document.forms.joinForm.idIpt.value != "" &&
				document.forms.joinForm.pwIpt.value != "" &&
				document.forms.joinForm.pwConfirmIpt.value != "" &&
				document.forms.joinForm.nickIpt.value != "" &&
				document.forms.joinForm.birthIpt.value != "" &&
				document.forms.joinForm.emailIpt.value != "" &&
				document.forms.joinForm.hpIptFirst.value != "" &&
				document.forms.joinForm.hpIptSecond.value != "" &&
				document.forms.joinForm.hpIptThird.value != "" &&
				document.forms.joinForm.telIptFirst.value != "" &&
				document.forms.joinForm.telIptSecond.value != "" &&
				document.forms.joinForm.telIptThird.value != "" &&
				document.forms.joinForm.addressIpt.value != "" &&
				document.forms.joinForm.fulladdressIptFirst != "" &&
				document.forms.joinForm.fulladdressIptSecond != "") {
				flag3 = true;
			}

			/*4)*/
			if (document.forms.joinForm.memberDivsion1.checked == true){
				flag4 = true;
			} else if(document.forms.joinForm.memberDivsion2.checked == true){
				if (document.forms.joinForm.studentSchoolIpt.value == ""){
					msg4Alter += ">> 어린이, 학생회원 : 소속학교를 입력하세요.\n";
				}
				if (document.forms.joinForm.studentGradeIpt.value == ""){
					msg4Alter += ">> 어린이, 학생회원 : 학년을 입력하세요.\n";
				}
				if (document.forms.joinForm.studentClassIpt.value == ""){
					msg4Alter += ">> 어린이, 학생회원 : 반을 입력하세요.\n";
				}
				if (document.forms.joinForm.studentNumerIpt.value == ""){
					msg4Alter += ">> 어린이, 학생회원 : 번호를 입력하세요.\n";
				}
				if(document.forms.joinForm.studentSchoolIpt.value != "" && document.forms.joinForm.studentGradeIpt.value != "" && document.forms.joinForm.studentClassIpt.value != "" && document.forms.joinForm.studentNumerIpt.value != ""){
					flag4 = true;
				}
			} else if(document.forms.joinForm.memberDivsion3.checked == true){
				if (document.forms.joinForm.teacherSchoolIpt.value == ""){
					msg4Alter += ">> 교사회원 : 소속학교를 입력하세요.\n";
				}
				if (document.forms.joinForm.teacherGradeIpt.value == ""){
					msg4Alter += ">> 교사회원 : 과목 /  직책을 입력하세요.\n";
				}
				if (document.forms.joinForm.teacherClassIpt.value == ""){
					msg4Alter += ">> 교사회원 : 학년을 입력하세요.\n";
				}
				if (document.forms.joinForm.teacherNumerIpt.value == ""){
					msg4Alter += ">> 교사회원 : 반을 입력하세요.\n";
				}
				if(document.forms.joinForm.teacherSchoolIpt.value != "" && document.forms.joinForm.teacherGradeIpt.value != "" && document.forms.joinForm.teacherClassIpt.value != "" && document.forms.joinForm.teacherNumerIpt.value != ""){
					flag4 = true;
				}
			} else if(document.forms.joinForm.memberDivsion4.checked == true){
				if (document.forms.joinForm.financial.checked == ""){
					msg4Alter += ">> 관리기관 : 사용자에 체크하세요.\n";
				}
				if(document.forms.joinForm.financial.checked != ""){
					flag4 = true;
				}
			}

			if(msg1Alter!="" ||
			   msg2Alter!="" ||
			   msg3Alter!="" ||
			   msg4Alter!="" ||
			   flag1 == false ||
			   flag2 == false ||
			   flag3 == false ||
			   flag4 == false){

				var msgvali = "「유효성 검사에서 통과하지 못하였습니다.」\n\n내용 : \n";
				if(msg1Alter!=""){
					msgvali = msgvali + msg1 + msg1Alter + "\n";
				}
				if(msg2Alter!=""){
					msgvali = msgvali + msg2 + msg2Alter + "\n";
				}
				if(msg3Alter!=""){
					msgvali = msgvali + msg3 + msg3Alter + "\n";
				}
				if(msg4Alter!=""){
					msgvali = msgvali + msg4 + msg4Alter + "\n";
				}
				alert(msgvali);
				msgvali = "";
			} else {
				undefenedCheckResult = true;
				JoinChecker.colsolPrint();
				JoinChecker.sumitter();
			}
		},
		sumitter : function(){
				if(regiCheckerResult == false){
					alert(">>> 일반회원 주민등록번호를 확인 하세요.\n");
					return false;
				}
				if(regiForeignCheckerResult == false){
					alert(">>> 국내거주 외국인등록번호를 확인 하세요.\n");
					return false;
				}
				if(passWordShortly == false){
					alert(">>> 비밀번호가 너무 짧습니다. 8자이상으로 작성 하시기 바랍니다.\n");
					return false;
				}
				if(passWordEquals == false){
					alert(">>> 비밀번호가 일치하지 않습니다. 다시 입력하세요.\n");
					return false;
				}
				if(emailCheckResult == false){
					alert(">>> 이메일의 형식에 맞지 않습니다.\n");
					return false;
				}

				if(idCheckResult == false){
					alert(">>> 아이디 중복검사가 필요합니다.\n");
					return false;
				}

				if(nickCheckResult == false){
					alert(">>> 닉네임 중복검사가 필요합니다.\n");
					return false;
				}

				if(undefenedCheckResult == false){
					alert(">>> 모든란을 입력 하셔야 합니다.\n");
					return false;
				}

				if(regiCheckerResult == true &&
					regiForeignCheckerResult == true &&
					passWordShortly == true &&
					passWordEquals== true &&
					emailCheckResult == true &&
					idCheckResult == true &&
					nickCheckResult == true &&
					undefenedCheckResult == true ){
					document.getElementById("USR_ID").value = $("#idIpt").val();
					if(document.getElementById("memberClassKorean").checked == true){
						document.getElementById("USR_NM").value = $("#nameKoreaIpt").val();
					} else if(document.getElementById("memberClassForign").checked == true) {
						document.getElementById("USR_NM").value = $("#nameForeignIptFirst").val() + $("#nameForeignIptSecond").val();
					}
					document.getElementById("USR_PWD").value = $("#pwIpt").val();
					document.getElementById("USR_ALIAS").value = $("#nickIpt").val();
					document.getElementById("REGISTER_NO").value = $("#regiKoreaIptFirst").val() + $("#regiKoreaIptSecond").val();
					document.getElementById("BIRTHDAY").value = $("#birthIpt").val();
					document.getElementById("MP_PT").value = JoinChecker.getRadioButtonValue(document.joinForm.memberCalendar);
					document.getElementById("EMAIL").value = $("#emailIpt").val();
					document.getElementById("HP").value = $("#hpIptFirst").val() + $("#hpIptSecond").val() + $("#hpIptThird").val();
					document.getElementById("TEL").value = $("#telIptFirst").val() + $("#telIptSecond").val() + $("#telIptThird").val();
					document.getElementById("ZIP_NO").value = $("#addressIpt").val();
					document.getElementById("ADDR1").value = $("#fulladdressIptFirst").val();
					document.getElementById("ADDR2").value = $("#fulladdressIptSecond").val();
					document.getElementById("USR_TYPE").value = JoinChecker.getRadioButtonValue(document.joinForm.memberDivsion);
					document.forms.joinForm.action = "?uri=member&mod=_memberJoin";
					document.forms.joinForm.submit();
					Mover.login();
				}
		},
		getRadioButtonValue : function(radioField) {
			for (var i =0; i<radioField.length; i++) {
				if( radioField[i].checked == true ) {
					return radioField[i].value;
				}
			}
		},
		colsolPrint : function(){
			if(theConsoleDebugEnabled == true) {
				if(!console){
					console.log("---------------------------------------------------");
					console.log("var regiCheckerResult        >>" + regiCheckerResult);
					console.log("var regiForeignCheckerResult >>" + regiForeignCheckerResult);
					console.log("var passWordEquals           >>" + passWordEquals);
					console.log("var passWordShortly          >>" + passWordShortly);
					console.log("var emailCheckResult         >>" + emailCheckResult);
					console.log("var idCheckResult            >>" + idCheckResult);
					console.log("var undefenedCheckResult     >>" + undefenedCheckResult);
					console.log("var nickCheckResult          >>" + nickCheckResult);
				}else{
					return;
				}
			} else {
				return;
			}
		}
	}


	var callBackVarSubmit; //callAfter로 부터 받은 맵핑 데이터를 전역변수에 대입
	var ModifyMember = {
		initialize : function(){
			//아이디 비밀번호 인증 버튼 바인딩
			$("#certification").bind('click',function(){
				$.getJSON('?uri=member&mod=__memberCertify',{idInput:document.forms.joinForm.idInput.value, pwdInput:document.forms.joinForm.pwInput.value}, ModifyMember.callAfter);
			});
			//아이디 비밀번호 인증 버튼 바인딩
			$("#pwInput").bind('keypress', function(){
				if(event.keyCode == "13") $("#certification").trigger('click');
			});
			//최종 서브밋 버튼 바인딩
			$("#buttonModifyConfirm").bind('click', function(){
			   ModifyMember.submitter();
			});

			//회원탈퇴
			$("#buttonLeave").bind('click',function(){
				Mover.memberLeave();
			});

			//패스워드 변경 체크
			$("#pwChangeIpt").keypress(function(){
				ModifyMember.passwordChangeChecker();
			});

			//pwConfirm 체크
			$("#pwChangeConfirmIpt").keyup(function(){
				ModifyMember.passwordChangeEqualsChecker();
			});
		},
		//pw, 체크
		passwordChangeChecker : function() {
			if($("#pwChangeIpt").val().length <= 7){
				$("#pwCheckResult").html("<span class=\"df lowResult\">너무짧음</span>");
			}
			if($("#pwChangeIpt").val().length > 7 && $("#pwIpt").val().length < 15){
				$("#pwCheckResult").html("<span class=\"df middleResult\">보안양호</span>");
				passWordShortly = true;
				JoinChecker.colsolPrint();
			}
			if($("#pwChangeIpt").val().length >= 15){
				$("#pwCheckResult").html("<span class=\"df highResult\">보안강력</span>");
				passWordShortly = true;
				JoinChecker.colsolPrint();
			}
		},
		passwordChangeEqualsChecker : function() {
			if($("#pwChangeConfirmIpt").val() == $("#pwChangeIpt").val()){
				$("#pwEqualResult").html("<span class=\"df trueResult\">일치</span>");
				passWordEquals = true;
				JoinChecker.colsolPrint();
			} else {
				 $("#pwEqualResult").html("<span class=\"df falseResult\">불일치</span>");
				passWordEquals = false;
				JoinChecker.colsolPrint();
			}
		},
		callAfter:function(callBackVar){
			if(callBackVar == false){
				$("#resultMemberModify").html("<span class=\"fontRed ti9\">아이디 비밀번호가 맞지 않습니다.</span>");
			} else {
				$("#bodiesModifyMember").css("height","1300px");
				$("#resultWrapper").css("display","block");
				$("#contentArea").css("border","4px solid #F4F4F5");
				$("#resultMemberModify").html("<span class=\"fontGreen ti9\">올바른 아이디 비밀번호를 입력했습니다.</span>");

				$("#doChangeDATAid").text(callBackVar.map["USR_ID"]);
				$$("pwIpt").value = callBackVar.map["USR_PWD"];
				$("#doChangeDATAname").text(callBackVar.map["USR_NM"]);
				$$('nickIpt').value = callBackVar.map["USR_ALIAS"];
				//var register_no = callBackVar.map["REGISTER_NO"].substr(6,7);
				$("#doChangeDATAregi").text(callBackVar.map["REGISTER_NO"].substr(0,6)+"-"+'privacy');
				$$("birthIpt").value = callBackVar.map["BIRTHDAY"].substr(0,4)+"-"+callBackVar.map["BIRTHDAY"].substr(4,2)+"-"+callBackVar.map["BIRTHDAY"].substr(6,2);
				if(callBackVar.map["MP_PT"] == 1){
					document.joinForm.memberCalendar[0].checked = true;
				}else if(callBackVar.map["MP_PT"] == 2){
					document.joinForm.memberCalendar[1].checked = true;
				}
				$$("emailIpt").value = callBackVar.map["EMAIL"];
				//var hpIptFirst = callBackVar.map["HP"].substr(0,3);
				//var hpIptSecond = callBackVar.map["HP"].substr(3,4);
				//var hpIptThird = callBackVar.map["HP"].substr(4,4);
				//$$("hpIptFirst").value = hpIptFirst;
				//$$("hpIptSecond").value = hpIptSecond;
				//$$("hpIptThird").value = hpIptThird;
				$$("hpIpt").value = callBackVar.map["HP"];
				$$("telIpt").value = callBackVar.map["TEL"];
				$$("addressIpt").value = callBackVar.map["ZIP_NO"];
				$$("fulladdressIptFirst").value = callBackVar.map["ADDR1"];
				$$("fulladdressIptSecond").value = callBackVar.map["ADDR2"];
				callBackVarSubmit = callBackVar;
			}
		},
		submitter:function() {
			if($("#pwChangeIpt").val() == "" || $("#pwChangeConfirmIpt").val() == ""){
				passWordEquals = true;           // 비밀번호 일치여부
				passWordShortly = true;          // 비밀번호 최소8자 여부
				passWordChanged = false;
			}else{
				if(passWordShortly == false){
					alert(">>> 비밀번호가 너무 짧습니다. 8자이상으로 작성 하시기 바랍니다.\n");
					return false;
				}
				if(passWordEquals == false){
					alert(">>> 비밀번호가 일치하지 않습니다. 다시 입력하세요.\n");
					return false;
				}
				if($('#pwChangeIpt').val() != callBackVarSubmit.map["USR_PWD"]){
					passWordChanged = true;
				}
			}

			if($$("emailIpt").value == callBackVarSubmit.map["EMAIL"]){
				emailCheckResult = true;
			}
			if(emailCheckResult == false){
				alert(">>> 이메일의 형식에 맞지 않습니다.\n");
				return false;
			}

			if($$('nickIpt').value == callBackVarSubmit.map["USR_ALIAS"]){
				nickCheckResult = true;
			}
			if(nickCheckResult == false){
				alert(">>> 닉네임 중복검사가 필요합니다.\n");
				return false;
			}
			if(passWordShortly == true &&
			   passWordEquals == true &&
			   emailCheckResult == true &&
			   nickCheckResult == true){

				if(passWordChanged == true) {
					document.getElementById("USR_PWD").value = $("#pwChangeIpt").val();
				} else {
					document.getElementById("USR_PWD").value = $("#pwIpt").val();
				}
				document.getElementById("USR_ALIAS").value = $("#nickIpt").val();
				document.getElementById("BIRTHDAY").value = $("#birthIpt").val();
				document.getElementById("MP_PT").value = JoinChecker.getRadioButtonValue(document.joinForm.memberCalendar);
				document.getElementById("EMAIL").value = $("#emailIpt").val();
				document.getElementById("HP").value = $("#hpIpt").val();
				document.getElementById("TEL").value = $("#telIpt").val();
				document.getElementById("ZIP_NO").value = $("#addressIpt").val();
				document.getElementById("ADDR1").value = $("#fulladdressIptFirst").val();
				document.getElementById("ADDR2").value = $("#fulladdressIptSecond").val();
				document.forms.joinForm.action = "?uri=member&mod=_memberModify";
				document.forms.joinForm.submit();
				Mover.memberModify();
			}
		}
	}

	var LeaveMember = {
		interactive : function() {
			//아이디 비밀번호 인증 버튼 바인딩
			$("#certification").bind('click',function(){
				$.getJSON('?uri=member&mod=__memberCertify',{idInput:document.forms.joinForm.idInput.value, pwdInput:document.forms.joinForm.pwInput.value}, ModifyMember.callAfter);
			});
			//아이디 비밀번호 인증 버튼 바인딩
			$("#pwInput").bind('keypress', function(){
				if(event.keyCode == "13") $("#certification").trigger('click');
			});
			//최종 서브밋 버튼 바인딩
			$("#buttonLeaveConfirm").bind('click', function(){
			   LeaveMember.submitter();
			});
		},
		initialize : function() {

		},
		submitter : function() {
			if($("#leaveComment").text() == ""){
				alert('탈퇴사유를 입력하세요');
				return false;
			} else {
				document.getElementById("SECESSION").value = $("#leaveComment").val();
				document.forms.joinForm.action = "?uri=member&mod=_memberLeave";
				document.forms.joinForm.submit();
				Mover.logout();
			}
		},
		callAfter : function(callBackVar){
			if(callBackVar == false){
				$("#resultMemberModify").html("<span class=\"fontRed ti9\">아이디 비밀번호가 맞지 않습니다.</span>");
			} else {
				$("#bodiesModifyMember").css("height","1300px");
				$("#resultWrapper").css("display","block");
				$("#contentArea").css("border","4px solid #F4F4F5");
				$("#resultMemberModify").html("<span class=\"fontGreen ti9\">올바른 아이디 비밀번호를 입력했습니다.</span>");
			}
		}
	}
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// ListeningTest : ListeningTest 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var ListeningTest = {
		interactive : function() {
			//list
			$(".contentListNormal").bind('mouseover', function() {
				this.className = "contentListActive";
			}).bind('mouseout', function() {
				$(".contentListActive").removeClass('contentListActive').addClass('contentListNormal');
			});
		},
		initialize : function() {
			$("#nav2").trigger('mouseover').unbind('mouseout');
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	//  MultiAnnouncer : MultiAnnouncer 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var MultiAnnouncer = {
		interactive : function() {
			//list
			$("ul.list > li").bind('mouseover', function() {
				this.className = "contentListActive";
				$("ul.list > li").attr('title','샘플 음성을 듣고 싶으시면 클릭 하세요');
			}).bind('mouseout', function() {
				$("ul.list > li").removeClass('contentListActive').addClass('contentListNormal');
			});
		},
		initialize : function() {
			$("#nav3").trigger('mouseover').unbind('mouseout');
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	//  MyPage : MyPage 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var MyPage = {
		interactive : function() {
		},
		initialize : function() {
			$("#nav7").trigger('mouseover').unbind('mouseout');
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	//  StudyRoom : StudyRoom 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var StudyRoom = {
		interactive : function() {
		},
		initialize : function() {
			$("#nav5").trigger('mouseover').unbind('mouseout');
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	//  Support : Support 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var Support = {
		interactive : function() {
		},
		initialize : function() {
			$("#nav7").trigger('mouseover').unbind('mouseout');
		}
	}


	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	//  SupportRules : SupportRules 사용되는 페이지 메서드 - 프로그램 설치 도움말 부분 포함.
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var SupportRules = {
		interactive : function() {

			$("#listeningTestDownloadButtonWEBTUTOR").bind('click',function(){
			   SideBar.download();
			});
		},
		initialize : function() {
		}
	}

	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	//  Tabmenu : Tabmenu 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var TabMenu = {
		activity : function(param) {
			switch(param) {
				case "tabmenu1" :$("#tabmenu1").removeClass("buttonNormal").addClass("buttonActive");break;
				case "tabmenu2" :$("#tabmenu2").removeClass("buttonNormal").addClass("buttonActive");break;
				case "tabmenu3" :$("#tabmenu3").removeClass("buttonNormal").addClass("buttonActive");break;
				case "tabmenu4" :$("#tabmenu4").removeClass("buttonNormal").addClass("buttonActive");break;
				case "tabmenu5" :$("#tabmenu5").removeClass("buttonNormal").addClass("buttonActive");break;
				case "tabmenu6" :$("#tabmenu6").removeClass("buttonNormal").addClass("buttonActive");break;
				case "tabmenu7" :$("#tabmenu7").removeClass("buttonNormal").addClass("buttonActive");break;
				default :return ;
			}
		},
		initialize : function() {
			$("#tabmenu1").bind('click', function(){Mover.rules()});
			$("#tabmenu2").bind('click', function(){Mover.personal()});
			$("#tabmenu3").bind('click', function(){Mover.support()});
			$("#tabmenu4").bind('click', function(){Mover.href('?uri=support&mod=JVMInstall')});
			$("#tabmenu5").bind('click', function(){Mover.href('?uri=support&mod=dotNetInstall')});
		}
	}




	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	//  TestRoom : TestRoom 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var TestRoom = {
		interactive : function() {
	//        //list
	//        $(".contentListNormal").bind('mouseover', function() {
	//            this.className = "contentListActive";
	//        }).bind('mouseout', function() {
	//            $(".contentListActive").removeClass('contentListActive').addClass('contentListNormal');
	//        });
	//
	//        $("#stop1").add("#stop2").add("#stop3").add("#stop4").add("#stop5").bind('click', function(){
	//           tracing('stop');
	//
	//        });
		},
		initialize : function() {
			$("#nav6").trigger('mouseover').unbind('mouseout');
		}
	}




	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	//  Sample : Sample 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var Sample = {
		interactive : function() {
		},
		initialize : function() {
			$("#nav8").trigger('mouseover').unbind('mouseout');
		}
	}



	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// Demo : Demo 사용되는 페이지 메서드
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var Demo = {
		interactive : function() {
			//list
			$(".contentListNormal").bind('mouseover', function() {
				this.className = "contentListActive";
			}).bind('mouseout', function() {
				$(".contentListActive").removeClass('contentListActive').addClass('contentListNormal');
			});
		},
		initialize : function() {
			$("#nav9").trigger('mouseover').unbind('mouseout');
		}
	}





	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	// GroupWare
	//----------------------------------------------------------------------------------------------------------------------------------------------------------------
	var GroupWare = {
		//스타팅시 포커스를 주고 엔터시 로그인 되게
		startingFocus : function() {
			var obj = document.forms.loginForm;
			obj.elements[0].focus();
			document.onkeydown = GroupWare.keyDown;
		},
		keyDown : function() {
			var keycode = event.keyCode;
			var realkey = String.fromCharCode(event.keyCode);

			if(keycode == "13") {
				GroupWare.loginFormChecker();
			}
		},
		//유효성검사
		loginFormChecker : function () {
			var msg="";

			if (document.forms.loginForm.iptId.value == "") {
				msg += "아이디를 입력하세요.\n";
			}

			if (document.forms.loginForm.iptPw.value == "") {
				msg += "비밀번호를 입력하세요.\n";
			}

			if (document.forms.loginForm.iptCommonPW.value == "") {
				msg += "공통암호를 입력하세요.\n";
			}

			if(msg!=""){
				var msgvali = "「유효성 검사에서 통과하지 못하였습니다.」\n\n내용 : \n";
				alert(msgvali + msg);
				return false;
			} else {
				document.forms.loginForm.action = "_login.php";
				document.forms.loginForm.submit();
			}
		},
		modifyFormChecker : function () {
			var msg="";

			if (document.forms.modifyForm.iptUserId.value == "") {
				msg += "아이디를 입력하세요.\n";
			}

			if (document.forms.modifyForm.iptUserPw.value == "") {
				msg += "비밀번호를 입력하세요.\n";
			}

			if (document.forms.modifyForm.iptUserPosition.value == "") {
				msg += "직급을 입력하세요.\n";
			}

			if (document.forms.modifyForm.iptUserName.value == "") {
				msg += "이름을 입력하세요.\n";
			}

			if (document.forms.modifyForm.iptUserTel.value == "") {
				msg += "전화번호를 입력하세요.\n";
			}

			if (document.forms.modifyForm.iptUserEmail.value == "") {
				msg += "이메일을 입력하세요.\n";
			}

			if (document.forms.modifyForm.iptNewUserPw.value != document.forms.modifyForm.iptNewUserPwConfirm.value) {
				msg += "비밀번호 변경시 입력 된 문자가 다릅니다.\n";
			}


			if(msg!=""){
				var msgvali = "「유효성 검사에서 통과하지 못하였습니다.」\n\n내용 : \n";
				alert(msgvali + msg);
				return false;
			} else {
				document.forms.modifyForm.action = "_userModify.php";
				document.forms.modifyForm.submit();
			}
		},
		newUserFormChecker : function () {
			var msg="";

			if (document.forms.newUserForm.iptUserId.value == "") {
				msg += "아이디를 입력하세요.\n";
			}

			if (document.forms.newUserForm.iptUserPw.value == "") {
				msg += "비밀번호를 입력하세요.\n";
			}

			if (document.forms.newUserForm.iptUserPosition.value == "") {
				msg += "직급을 입력하세요.\n";
			}

			if (document.forms.newUserForm.iptUserName.value == "") {
				msg += "이름을 입력하세요.\n";
			}

			if (document.forms.newUserForm.iptUserTel.value == "") {
				msg += "전화번호를 입력하세요.\n";
			}

			if (document.forms.newUserForm.iptUserEmail.value == "") {
				msg += "이메일을 입력하세요.\n";
			}

			if (document.forms.newUserForm.iptUserPw.value != document.forms.newUserForm.iptUserPwConfirm.value) {
				msg += "비밀번호 확인시 입력 된 문자가 다릅니다.\n";
			}


			if(msg!=""){
				var msgvali = "「유효성 검사에서 통과하지 못하였습니다.」\n\n내용 : \n";
				alert(msgvali + msg);
				return false;
			} else {
				document.forms.newUserForm.action = "_newUser.php";
				document.forms.newUserForm.submit();
			}
		},
		checkNewId : function() {
			window.open('_newUserIdCheck.php?checkid=' + document.forms.newUserForm.iptUserId.value,'','width=320,height=180,left=300,top=300, toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrollbars=no, copyhistory=no');
		},
		activeMenu : function(objMenu1, objMenu2) {
			$$(objMenu1).className = 'gnbButtonOver';
			$$(objMenu1).setAttribute("onmouseout", "this.className = 'gnbButtonOver'");
			$$(objMenu2).className = 'gnbLinkActive';
		},
		spellNumChecker : function(objId, objNum) {
			if( $$(objId).value.length >= objNum ) {
				alert(objNum+"자 이상 입력 할 수 없습니다.");
				$$(objId).focus();
			}
		},
		memoUpdate : function() {
			document.forms.memoBoardForm.action = "_memoUpdate.php";
			document.forms.memoBoardForm.submit();
		},
		businessLogFormChecker : function () {
			var msg="";

			if (document.forms.businessLogForm.titleOfDateYear.value == "") {
				msg += "작성일(년)을 입력하세요.\n";
			}

			if (document.forms.businessLogForm.titleOfDateMonth.value == "") {
				msg += "작성일(월)을 입력하세요.\n";
			}

			if (document.forms.businessLogForm.titleOfDateDay.value == "") {
				msg += "작성일(일)을 입력하세요.\n";
			}

			if (document.forms.businessLogForm.titleOfAuthor.value == "") {
				msg += "작성자를 입력하세요.\n";
			}

			if (document.forms.businessLogForm.titleOfTitle.value == "") {
				msg += "제목을 입력하세요.\n";
			}

			if(msg!=""){
				var msgvali = "「유효성 검사에서 통과하지 못하였습니다.」\n\n내용 : \n";
				alert(msgvali + msg);
				return false;
			} else {
				document.forms.businessLogForm.action = "_businessLogWrite.php";
				document.forms.businessLogForm.submit();
			}
		},
		businessLogModifyFormChecker : function () {
			var msg="";

			if (document.forms.businessLogModifyForm.titleOfDateYear.value == "") {
				msg += "작성일(년)을 입력하세요.\n";
			}

			if (document.forms.businessLogModifyForm.titleOfDateMonth.value == "") {
				msg += "작성일(월)을 입력하세요.\n";
			}

			if (document.forms.businessLogModifyForm.titleOfDateDay.value == "") {
				msg += "작성일(일)을 입력하세요.\n";
			}

			if (document.forms.businessLogModifyForm.titleOfAuthor.value == "") {
				msg += "작성자를 입력하세요.\n";
			}

			if (document.forms.businessLogModifyForm.titleOfTitle.value == "") {
				msg += "제목을 입력하세요.\n";
			}

			if(msg!=""){
				var msgvali = "「유효성 검사에서 통과하지 못하였습니다.」\n\n내용 : \n";
				alert(msgvali + msg);
				return false;
			} else {
				document.forms.businessLogModifyForm.action = "_businessLogModify.php";
				document.forms.businessLogModifyForm.submit();
			}
		},
		businessLogNoteUpdateFormChecker : function () {
			document.forms.businessLogNoteUpdateForm.action = "_businessLogModifyForNote.php";
			document.forms.businessLogNoteUpdateForm.submit();
		},
		businessLogOpenpop : function (obj1,obj2){
			var setting ="width=595, height=842,fullscreen=no, location=no, scrollbars=no, menubar=no, toolbar=no, titlebar=no, directories=no, resizable=no";
			window.open(obj1,obj2, setting);
		}

	}

	var Mover = {
		//페이지 이동
		href : function(urlParm) {
			if(new RegExp(/MSIE/).test(navigator.userAgent)) {
				document.location.href(urlParm);
			} else if(new RegExp(/Firefox/).test(navigator.userAgent)) {
				document.location.replace(urlParm);
			} else if(new RegExp(/Chrome/).test(navigator.userAgent)){
				document.location.replace(urlParm);
			}
		},
		//페이지 변경
		replace : function(url) {
			window.location.replace(url);
			if(new RegExp(/MSIE/).test(navigator.userAgent)) {
				document.location.href(url);
			} else if(new RegExp(/Firefox/).test(navigator.userAgent)) {
				document.location.replace(url);
			} else if(new RegExp(/Chrome/).test(navigator.userAgent)){
				document.location.replace(url);
			}
		},
		back : function() {
			window.history.go(-1);
		}
	}

	var CorpBoard = {
		writeFormChecker : function(){
			var msg="";

			if (document.forms.myWriteForm.subject.value == "") {
				msg += "제목을 입력하세요.\n";
			}
			if (document.forms.myWriteForm.name.value == "") {
				msg += "작성자를 입력하세요.\n";
			}
			if (document.forms.myWriteForm.memo.value == "") {
				msg += "내용을 입력하세요.\n";
			}

			if(msg!=""){
				var msgvali = "「유효성 검사에서 통과하지 못하였습니다.」\n\n내용 : \n";
				alert(msgvali + msg);
				return false;
			} else {
				document.forms.myWriteForm.action = "_corpBoardWrite.php";
				document.forms.myWriteForm.submit();
			}
		},
		modifyFormChecker : function(){
			var msg="";

			if (document.forms.myModifyForm.subject.value == "") {
				msg += "제목을 입력하세요.\n";
			}
			if (document.forms.myModifyForm.name.value == "") {
				msg += "작성자를 입력하세요.\n";
			}
			if (document.forms.myModifyForm.memo.value == "") {
				msg += "내용을 입력하세요.\n";
			}

			if(msg!=""){
				var msgvali = "「유효성 검사에서 통과하지 못하였습니다.」\n\n내용 : \n";
				alert(msgvali + msg);
				return false;
			} else {
				document.forms.myModifyForm.action = "_corpBoardModify.php";
				document.forms.myModifyForm.submit();
			}
		},
		replyFormChecker : function(){
			var msg="";

			if (document.forms.myReplyForm.subject.value == "") {
				msg += "제목을 입력하세요.\n";
			}
			if (document.forms.myReplyForm.name.value == "") {
				msg += "작성자를 입력하세요.\n";
			}
			if (document.forms.myReplyForm.memo.value == "") {
				msg += "내용을 입력하세요.\n";
			}

			if(msg!=""){
				var msgvali = "「유효성 검사에서 통과하지 못하였습니다.」\n\n내용 : \n";
				alert(msgvali + msg);
				return false;
			} else {
				document.forms.myReplyForm.action = "_corpBoardReply.php";
				document.forms.myReplyForm.submit();
			}
		}
	}

	var Cookier = {
		setCookie : function(name, value, expires) {
			document.cookie = name + "=" + escape (value) + "; path=/; expires=" + expires.toGMTString();
		},

		saveid : function() {
			var expdate = new Date();
			if (document.forms.loginForm.checksaveid.checked) {
				expdate.setTime(expdate.getTime() + 1000 * 3600 * 24 * 30); // 30일
			} else {
				expdate.setTime(expdate.getTime() - 1); // 쿠키 삭제조건
			}
			Cookier.setCookie("saveid", document.forms.loginForm.iptId.value, expdate);
		},

		getid : function(form) {
			document.forms.loginForm.checksaveid.checked = ((document.forms.loginForm.iptId.value = Cookier.getCookie("saveid")) != "");
		},

		getCookie : function(Name) {
			var search = Name + "="
			if (document.cookie.length > 0) { // 쿠키가 설정되어 있다면
				offset = document.cookie.indexOf(search)
				if (offset != -1) { // 쿠키가 존재하면
					offset += search.length
					// set index of beginning of value
					end = document.cookie.indexOf(";", offset)
					// 쿠키 값의 마지막 위치 인덱스 번호 설정
						if (end == -1)
							end = document.cookie.length
					return unescape(document.cookie.substring(offset, end))
				}
			  }
			  return "";
		}
	}

	var Cookiees = {
		setCookie : function(name, value, expires) {
			document.cookie = name + "=" + escape (value) + "; path=/; expires=" + expires.toGMTString();
		},
		savePublicPw : function() {
			var expdate = new Date();
			if (document.forms.loginForm.checksavepublicpw.checked) {
				expdate.setTime(expdate.getTime() + 1000 * 3600 * 24 * 30); // 30일
			} else {
				expdate.setTime(expdate.getTime() - 1); // 쿠키 삭제조건
			}
			Cookiees.setCookie("savePublicPw", document.forms.loginForm.iptCommonPW.value, expdate);
		},
		getPublicPW : function(form) {
			document.forms.loginForm.checksavepublicpw.checked = ((document.forms.loginForm.iptCommonPW.value = Cookiees.getCookie("savePublicPw")) != "");
		},
		getCookie : function(Name) {
			var search = Name + "="
			if (document.cookie.length > 0) { // 쿠키가 설정되어 있다면
				offset = document.cookie.indexOf(search)
				if (offset != -1) { // 쿠키가 존재하면
					offset += search.length
					// set index of beginning of value
					end = document.cookie.indexOf(";", offset)
					// 쿠키 값의 마지막 위치 인덱스 번호 설정
						if (end == -1)
							end = document.cookie.length
					return unescape(document.cookie.substring(offset, end))
				}
			}
			  return "";
		}
	}

	var DOM = {
			$$ : function(element){
				return document.getElementById(element);
			}
	}

	var Ajax = {
		getXMLHttp : function(){
			try {
				// Firefox, Opera 8.0+, Safari , IE 7
				return new XMLHttpRequest();
			} catch(e)	{
				try {
					// Internet Explorer 5, 6
					return new ActiveXObject("Msxml2.XMLHTTP");
				} catch(e)	{
					try {
						return new ActiveXObject("Microsoft.XMLHTTP");
					} catch(e) {
						// XMLHttp 생성 실패
						alert("Cannot Create XMLHttp!");
						return null;
					}
				}
			}
		}
	}

	var IdChecker = {
		//요청함수
		ajaxPostSend : function() {
			var postString = "";
				postString  = "iptUserId=" + encodeURIComponent($("iptUserId").value);

			request.open("POST", "_newUserIdCheckAjax.php", true);
			request.onreadystatechange = IdChecker.ajaxPostRequest;
			request.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8");
			request.send(postString);
		},
		//받는함수
		ajaxPostRequest : function() {
			if(request.readyState == 0){
				$$("requestResult").innerHTML = "uninitialized";
			} else if(request.readyState == 1){
				$$("requestResult").innerHTML = "loading";
			} else if(request.readyState == 2){
				$$("requestResult").innerHTML = "loaded";
			} else if(request.readyState == 3){
				$$("requestResult").innerHTML = "interactve";
			} else if(request.readyState == 4){
				if(request.status == 200){
					var strText = request.responseText;
					$$("requestResult").innerHTML = strText;
				}
			}
		}
	}
	//
	//var MemoUpdate = {
	//	//요청함수
	//	ajaxPostSend : function() {
	//		var postString = "";
	//			postString  = "memoBoard=" + encodeURIComponent($("memoBoard").value);
	//
	//		request.open("POST", "_memoUpdateAjax.php", true);
	//		request.onreadystatechange = MemoUpdate.ajaxPostRequest;
	//		request.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8");
	//		request.send(postString);
	//	},
	//	//받는함수
	//	ajaxPostRequest : function() {
	//		if(request.readyState == 0){
	//			$("memoBoard").innerHTML = "uninitialized";
	//		} else if(request.readyState == 1){
	//			$("memoBoard").innerHTML = "loading";
	//		} else if(request.readyState == 2){
	//			$("memoBoard").innerHTML = "loaded";
	//		} else if(request.readyState == 3){
	//			$("memoBoard").innerHTML = "interactve";
	//		} else if(request.readyState == 4){
	//			if(request.status == 200){
	//				var strText = request.responseText;
	//				$("memoBoard").innerHTML = strText;
	//			}
	//		}
	//	}
	//}

	var ActBtn = {
		over : function (obj, paramClassName){
			$$(obj).className = paramClassName;
		},
		out : function (obj, paramClassName){
			$$(obj).className = paramClassName;
		}
	}

	var $$ = DOM.$$;
	var request = Ajax.getXMLHttp();